#ifndef LIST_H
#define LIST_H

#include <QtGui/QWidget>
#include <QtGui/QMenu>
#include "widget.h"
#include "talk.h"
#include <QtGui/QTreeWidget>
#include <QtGui/QTreeWidgetItem>


namespace Ui {
    class list;
}

class list : public QWidget {
    Q_OBJECT
    Q_DISABLE_COPY(list)
public:
    explicit list(QWidget *parent = 0);
    virtual ~list();

protected:
    virtual void changeEvent(QEvent *e);
    void paintEvent(QPaintEvent *event);

private:
    Ui::list *m_ui;
    QMenu *setMenu1;
    QMenu *setMenu2;
    QAction *MenuAct3;
    QAction *setAct11;
    QAction *setAct12;
    QAction *setAct13;
    QTreeWidgetItem *tree0;
    QTreeWidgetItem *tree1;
    QTreeWidgetItem *tree2;
    QTreeWidgetItem *childtree00;
    QTreeWidgetItem *childtree01;
    QTreeWidgetItem *childtree02;
    Widget *myWidget;

 private slots:
    void set11();
    void set12();
    void set13();
    void set2();
    void set3();
    void AddQTreeWidgetGroup(QString group);
    void AddQTreeWidgetItem(QString group,QString name);
    void ClickTreeItem(QTreeWidgetItem * item, int column);

};

#endif // LIST_H
